home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Net / Utilities / Seer family 2.0 / seer_common / sc_utilities.c < prev   
Encoding:
C/C++ Source or Header  |  1987-08-29  |  261 b   |  16 lines  |  [TEXT/KAHL]

  1. /*
  2.     utilities
  3. */
  4. #include "sc.h"
  5.  
  6. /*
  7.     standard c string length
  8. */
  9. int strlen(str)
  10. register char *str;
  11. {char *old_str;
  12.  old_str=str;
  13.  while((*str++)!=0)        /*advance till we hit the null at the end*/
  14.      ;
  15.  return ((str-old_str)-1); /*return how far forward went*/
  16. }